<template>
  <div class="container">
    <div class="swiper">
      <el-carousel indicator-position="none" height="7rem">
        <el-carousel-item v-for="(item,index) in items" :key="index">
          <img :src="item.src">
        </el-carousel-item>
      </el-carousel>
      <div class="banner-box flex-row flex-x-center flex-y-center">
          <router-link to="renqibang" class="flex-col flex-y-center flex-x-center">
            <img src='@/assets/images/icon/banner-list.png'>
            <div class="subtit">人气榜</div>
          </router-link>
          <router-link to="zhuanjifen" class="flex-col flex-y-center flex-x-center">
            <img src='@/assets/images/icon/banner-money.png'>
            <div class="subtit">赚积分</div>
          </router-link>
      </div>
      <div class="wode">
        <router-link to="wodemeixiang"><span class="moneyColor">我的享美圈</span><img src='@/assets/images/icon/right-arrow2.png'></router-link>
      </div>
    </div>
    <div class="view">
      <div class="tit flex flex-y-center bd-bottom">
        <div class="line flex-grow-0"></div>
        <div class="flex-col flex-grow-1">
          <h3>买家秀</h3>
          <span>Buyyers show</span>
        </div>
        <router-link to="meixiangmore" class="link">  <h3 class="lex-grow-0">MORE <img src='@/assets/images/icon/right-arrow.png'></h3></router-link>
      
      </div>
      <div class="info flex flex-col">
        <div class="flex-row user">
          <img src="http://imgsrc.baidu.com/imgad/pic/item/34fae6cd7b899e51fab3e9c048a7d933c8950d21.jpg">
          <div class="flex-col flex-grow-1">
            <div class="flex-row">
              <div class="username flex-grow-0">赤子之心</div>
              <div class="flex-grow-1 biaoti">一次很好的购物</div>
            </div>
            <div class="flex-row flex-grow-1 flex-y-center">
              <div class="subtit flex-grow-1">2018.3.8</div>
              <div class="flex-grow-0 moneyColor guanzhu">+关注(200)</div>
            </div>
          </div>
          <div></div>
        </div>
        <div class="say">
          <span>卖家说</span>所以必须将它添加到一个元素所以必须将它添加到一个元素所以必须将它添加到一个元素所以必须将它添加到一个元素所以必须将它添加到一个元素
        </div>
        <div class="scroll">
          <img src="http://imgsrc.baidu.com/imgad/pic/item/34fae6cd7b899e51fab3e9c048a7d933c8950d21.jpg">
          <img src="http://imgsrc.baidu.com/imgad/pic/item/34fae6cd7b899e51fab3e9c048a7d933c8950d21.jpg">
          <img src="http://imgsrc.baidu.com/imgad/pic/item/34fae6cd7b899e51fab3e9c048a7d933c8950d21.jpg">
        </div>
        <div class="view-bottom">
          <span>评论<img src='@/assets/images/icon/btn-comment.png'></span>
          <span>点赞<img src='@/assets/images/icon/btn-love.png'></span>
          <span>打赏<img src='@/assets/images/icon/btn-good.png'></span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default ({
  data() {
    return {
      items: [
        { src: "http://imgsrc.baidu.com/imgad/pic/item/34fae6cd7b899e51fab3e9c048a7d933c8950d21.jpg", id: 1 },
        { src: "http://imgsrc.baidu.com/imgad/pic/item/34fae6cd7b899e51fab3e9c048a7d933c8950d21.jpg", id: 2 },
        { src: "http://imgsrc.baidu.com/imgad/pic/item/34fae6cd7b899e51fab3e9c048a7d933c8950d21.jpg", id: 3 }
      ]
    }
  }
})

</script>
<style scoped lang="less">
.container {
  background-color: #eee;
}

.swiper {
  margin-top: 0.1rem;
  width: 100%;
  position: relative;
  el-carousel-item {
    height: 6rem;
  }
  background-color:#fff;
  img {
    height: 7rem;
    width: 100%;
  }
  .wode {
    margin-top: 2rem;
    height: 1.5rem;
    width: 100%;
    font-size: .8rem;
    text-align: center;
    img {
      margin-left: .5rem;
      height: .7rem;
      width: .7rem;
    }
  }
}

.view {
  background-color: #fff;
  margin-top: .5rem;
  .tit {
    padding: .5rem;
    h3 {
      font-size: .7rem;
      font-weight: normal;
      img {
        margin-left: .5rem;
        width: .6rem;
        height: .8rem;
      }
    }
    span {
      font-size: 0.5rem;
    }
    .line {
      width: 1.5px;
      margin: 0 .5rem;
      height: 1.4rem;
      background-color: #000;
    }
  }
  .info {

    padding: .5rem;
    .user {
      .biaoti {
        font-size: .7rem;
      }
      img {
        height: 2rem;
        width: 2rem;
        border-radius: 50%;
        margin-right: .5rem;
      }
      .username {
        margin-right: 2rem;
      }
      .username,
      .guanzhu {
        font-size: .6rem;
      }
    }
    .say {
      margin-top: .5rem;
      line-height: .8rem;
      height: .8rem;
      overflow: hidden;
      word-break: break-all;
      text-overflow: ellipsis;
      line-clamp: 2;
      overflow: hidden;
      white-space: nowrap;
      span {
        border: 1px solid #F75B93;
        color: #F75B93;
        font-size: .2rem;
        padding: 0 .1rem;
        margin-right: .3rem;
      }
    }
    .scroll {
      margin-top: .5rem;
      background-color: #fff;
      height: 6rem;
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      img {
        height: 100%;
        margin-left: .5rem;
      }
    }
    .view-bottom {
      margin-top: .5rem;
      text-align: right;
      img {
        height: .7rem;
        width: .7rem;
        margin-left: .2rem;
      }
      span {
        margin-left: .8rem;
      }
    }
  }
}


.banner-box {
  width: 60%;
  height: 3rem;
  justify-content: space-around;
  background: #fff;
  position: absolute;
  top: 5.5rem;
  left: 0;
  right: 0;
  margin: 0 20%;
  box-shadow: 0px 5px 12px 0px rgba(56, 56, 56, 0.1);
  border-radius: .5rem;
  z-index: 999;
  color: #999;
  img {
    height: 1.2rem;
    width: 1.2rem;
    margin-bottom: .2rem;
  }
}

</style>
